package com.jwm.power.task;

import com.jwm.power.service.InquiryService;
import com.jwm.power.service.LogisticsService;
import com.jwm.power.service.T6FreightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


@Component
@EnableScheduling
/**
 * 这里是定时自动执行的函数，业务流程是每个一小时，自动向数据库后台发起请求获取当前数据库中值
 * */
public class SchedulingTask {
    @Autowired
    InquiryService inquiryService;
    @Autowired
    T6FreightService t6FreightService;
    @Autowired
    LogisticsService logisticsService;

//    @Scheduled(fixedRate = 10000)
//    public void getCompany(){
//        t6FreightService.getT6Freight();
//        logisticsService.getCompanyName();
//    }
}